<?php

class PostProducts extends SimpleWebRequest{

	public function send(){
		$response = parent::send();

		return $response;
	}


	public function __construct( $params ){

		if($_SERVER['HTTP_HOST'] == 'ipadserver.dyndns-ip.com'){
			$params['url'] = 'https://directo7.gate.ee/ocra_kolonna/transport/xmlcore.asp';
		}else{
			$params['url'] = 'http://kolonna.ee/frontend_dev.php/action/ipad/post';
		}
		
		$params['request_data'] = array('xmldata' => $params['xml'], 'put' => '1', 'what' => 'items');
		$params['method'] = 'POST';

		parent::__construct( $params );
	}

}